﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Engine
{
    public class TypeConvertor
    {
        public static String ToObjectiveC(Type t)
        {
            return ToObjectiveC(t.ToString());
        }

        public static String ToObjectiveC(String t)
        {
            switch (t.ToString())
            {
                case "Int32":
                    return "int";
                case "String":
                case "string":
                    return "NSString";
                case "Double":
                    return "double";
                default:
                    return t.ToString();
            }
        }
    }
}